/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: C:\\Users\\gh\\android_code\\printdemo\\app\\src\\main\\aidl\\recieptservice\\com\\recieptservice\\PrinterInterface.aidl
 */
package recieptservice.com.recieptservice;
public interface PrinterInterface extends android.os.IInterface
{
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements recieptservice.com.recieptservice.PrinterInterface
{
private static final java.lang.String DESCRIPTOR = "recieptservice.com.recieptservice.PrinterInterface";
/** Construct the stub at attach it to the interface. */
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
/**
 * Cast an IBinder object into an recieptservice.com.recieptservice.PrinterInterface interface,
 * generating a proxy if needed.
 */
public static recieptservice.com.recieptservice.PrinterInterface asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof recieptservice.com.recieptservice.PrinterInterface))) {
return ((recieptservice.com.recieptservice.PrinterInterface)iin);
}
return new recieptservice.com.recieptservice.PrinterInterface.Stub.Proxy(obj);
}
@Override public android.os.IBinder asBinder()
{
return this;
}
@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
{
switch (code)
{
case INTERFACE_TRANSACTION:
{
reply.writeString(DESCRIPTOR);
return true;
}
case TRANSACTION_printEpson:
{
data.enforceInterface(DESCRIPTOR);
byte[] _arg0;
_arg0 = data.createByteArray();
this.printEpson(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_getServiceVersion:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _result = this.getServiceVersion();
reply.writeNoException();
reply.writeString(_result);
return true;
}
case TRANSACTION_printText:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
this.printText(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_printBitmap:
{
data.enforceInterface(DESCRIPTOR);
android.graphics.Bitmap _arg0;
if ((0!=data.readInt())) {
_arg0 = android.graphics.Bitmap.CREATOR.createFromParcel(data);
}
else {
_arg0 = null;
}
this.printBitmap(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_printBarCode:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
int _arg1;
_arg1 = data.readInt();
int _arg2;
_arg2 = data.readInt();
int _arg3;
_arg3 = data.readInt();
this.printBarCode(_arg0, _arg1, _arg2, _arg3);
reply.writeNoException();
return true;
}
case TRANSACTION_printQRCode:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
int _arg1;
_arg1 = data.readInt();
int _arg2;
_arg2 = data.readInt();
this.printQRCode(_arg0, _arg1, _arg2);
reply.writeNoException();
return true;
}
case TRANSACTION_setAlignment:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
this.setAlignment(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_setTextSize:
{
data.enforceInterface(DESCRIPTOR);
float _arg0;
_arg0 = data.readFloat();
this.setTextSize(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_nextLine:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
this.nextLine(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_printTableText:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String[] _arg0;
_arg0 = data.createStringArray();
int[] _arg1;
_arg1 = data.createIntArray();
int[] _arg2;
_arg2 = data.createIntArray();
this.printTableText(_arg0, _arg1, _arg2);
reply.writeNoException();
return true;
}
case TRANSACTION_setTextBold:
{
data.enforceInterface(DESCRIPTOR);
boolean _arg0;
_arg0 = (0!=data.readInt());
this.setTextBold(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_beginWork:
{
data.enforceInterface(DESCRIPTOR);
this.beginWork();
reply.writeNoException();
return true;
}
case TRANSACTION_endWork:
{
data.enforceInterface(DESCRIPTOR);
this.endWork();
reply.writeNoException();
return true;
}
case TRANSACTION_setDark:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
this.setDark(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_setLineHeight:
{
data.enforceInterface(DESCRIPTOR);
float _arg0;
_arg0 = data.readFloat();
this.setLineHeight(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_setTextDoubleWidth:
{
data.enforceInterface(DESCRIPTOR);
boolean _arg0;
_arg0 = (0!=data.readInt());
this.setTextDoubleWidth(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_setTextDoubleHeight:
{
data.enforceInterface(DESCRIPTOR);
boolean _arg0;
_arg0 = (0!=data.readInt());
this.setTextDoubleHeight(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_printPDF417Code:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
int _arg1;
_arg1 = data.readInt();
int _arg2;
_arg2 = data.readInt();
this.printPDF417Code(_arg0, _arg1, _arg2);
reply.writeNoException();
return true;
}
case TRANSACTION_setCode:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
this.setCode(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_print128BarCode:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
int _arg1;
_arg1 = data.readInt();
int _arg2;
_arg2 = data.readInt();
int _arg3;
_arg3 = data.readInt();
this.print128BarCode(_arg0, _arg1, _arg2, _arg3);
reply.writeNoException();
return true;
}
}
return super.onTransact(code, data, reply, flags);
}
private static class Proxy implements recieptservice.com.recieptservice.PrinterInterface
{
private android.os.IBinder mRemote;
Proxy(android.os.IBinder remote)
{
mRemote = remote;
}
@Override public android.os.IBinder asBinder()
{
return mRemote;
}
public java.lang.String getInterfaceDescriptor()
{
return DESCRIPTOR;
}
@Override public void printEpson(byte[] data) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeByteArray(data);
mRemote.transact(Stub.TRANSACTION_printEpson, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public java.lang.String getServiceVersion() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
java.lang.String _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getServiceVersion, _data, _reply, 0);
_reply.readException();
_result = _reply.readString();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public void printText(java.lang.String text) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(text);
mRemote.transact(Stub.TRANSACTION_printText, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void printBitmap(android.graphics.Bitmap pic) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
if ((pic!=null)) {
_data.writeInt(1);
pic.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
mRemote.transact(Stub.TRANSACTION_printBitmap, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void printBarCode(java.lang.String data, int symbology, int height, int width) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(data);
_data.writeInt(symbology);
_data.writeInt(height);
_data.writeInt(width);
mRemote.transact(Stub.TRANSACTION_printBarCode, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void printQRCode(java.lang.String data, int modulesize, int errorlevel) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(data);
_data.writeInt(modulesize);
_data.writeInt(errorlevel);
mRemote.transact(Stub.TRANSACTION_printQRCode, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void setAlignment(int alignment) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(alignment);
mRemote.transact(Stub.TRANSACTION_setAlignment, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void setTextSize(float textSize) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeFloat(textSize);
mRemote.transact(Stub.TRANSACTION_setTextSize, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void nextLine(int line) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(line);
mRemote.transact(Stub.TRANSACTION_nextLine, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void printTableText(java.lang.String[] text, int[] weight, int[] alignment) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeStringArray(text);
_data.writeIntArray(weight);
_data.writeIntArray(alignment);
mRemote.transact(Stub.TRANSACTION_printTableText, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void setTextBold(boolean bold) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(((bold)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_setTextBold, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void beginWork() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_beginWork, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void endWork() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_endWork, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void setDark(int value) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(value);
mRemote.transact(Stub.TRANSACTION_setDark, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void setLineHeight(float lineHeight) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeFloat(lineHeight);
mRemote.transact(Stub.TRANSACTION_setLineHeight, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void setTextDoubleWidth(boolean enable) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(((enable)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_setTextDoubleWidth, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void setTextDoubleHeight(boolean enable) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(((enable)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_setTextDoubleHeight, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void printPDF417Code(java.lang.String data, int modulesize, int errorlevel) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(data);
_data.writeInt(modulesize);
_data.writeInt(errorlevel);
mRemote.transact(Stub.TRANSACTION_printPDF417Code, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void setCode(java.lang.String code) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(code);
mRemote.transact(Stub.TRANSACTION_setCode, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void print128BarCode(java.lang.String data, int type, int height, int width) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(data);
_data.writeInt(type);
_data.writeInt(height);
_data.writeInt(width);
mRemote.transact(Stub.TRANSACTION_print128BarCode, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
}
static final int TRANSACTION_printEpson = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_getServiceVersion = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_printText = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
static final int TRANSACTION_printBitmap = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
static final int TRANSACTION_printBarCode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
static final int TRANSACTION_printQRCode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);
static final int TRANSACTION_setAlignment = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6);
static final int TRANSACTION_setTextSize = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7);
static final int TRANSACTION_nextLine = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8);
static final int TRANSACTION_printTableText = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9);
static final int TRANSACTION_setTextBold = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10);
static final int TRANSACTION_beginWork = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11);
static final int TRANSACTION_endWork = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12);
static final int TRANSACTION_setDark = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13);
static final int TRANSACTION_setLineHeight = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14);
static final int TRANSACTION_setTextDoubleWidth = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15);
static final int TRANSACTION_setTextDoubleHeight = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16);
static final int TRANSACTION_printPDF417Code = (android.os.IBinder.FIRST_CALL_TRANSACTION + 17);
static final int TRANSACTION_setCode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 18);
static final int TRANSACTION_print128BarCode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 19);
}
public void printEpson(byte[] data) throws android.os.RemoteException;
public java.lang.String getServiceVersion() throws android.os.RemoteException;
public void printText(java.lang.String text) throws android.os.RemoteException;
public void printBitmap(android.graphics.Bitmap pic) throws android.os.RemoteException;
public void printBarCode(java.lang.String data, int symbology, int height, int width) throws android.os.RemoteException;
public void printQRCode(java.lang.String data, int modulesize, int errorlevel) throws android.os.RemoteException;
public void setAlignment(int alignment) throws android.os.RemoteException;
public void setTextSize(float textSize) throws android.os.RemoteException;
public void nextLine(int line) throws android.os.RemoteException;
public void printTableText(java.lang.String[] text, int[] weight, int[] alignment) throws android.os.RemoteException;
public void setTextBold(boolean bold) throws android.os.RemoteException;
public void beginWork() throws android.os.RemoteException;
public void endWork() throws android.os.RemoteException;
public void setDark(int value) throws android.os.RemoteException;
public void setLineHeight(float lineHeight) throws android.os.RemoteException;
public void setTextDoubleWidth(boolean enable) throws android.os.RemoteException;
public void setTextDoubleHeight(boolean enable) throws android.os.RemoteException;
public void printPDF417Code(java.lang.String data, int modulesize, int errorlevel) throws android.os.RemoteException;
public void setCode(java.lang.String code) throws android.os.RemoteException;
public void print128BarCode(java.lang.String data, int type, int height, int width) throws android.os.RemoteException;
}
